package dto;

import model.Material;

public class PurchaseItem 
{
	 private int autoPurchaseOrderItemId;
	 private String mCode;
	 private String poNumber;
	 private double mQuantity;
	 private double mPrice;
	 private double mDiscount;
	 private int    mSpecCode;
	 private int    idPurchaseOrder;
	 
	 //model attributes
	 private Material modelMaterial;
	 
	 public PurchaseItem()
	 {
		 
	 }

	
	 
	 public PurchaseItem(int autoPurchaseOrderItemId, String mCode,
			String poNumber, double mQuantity, double mPrice, double mDiscount,
			int mSpecCode, int idPurchaseOrder) {
		super();
		this.autoPurchaseOrderItemId = autoPurchaseOrderItemId;
		this.mCode = mCode;
		this.poNumber = poNumber;
		this.mQuantity = mQuantity;
		this.mPrice = mPrice;
		this.mDiscount = mDiscount;
		this.mSpecCode = mSpecCode;
		this.idPurchaseOrder = idPurchaseOrder;
	}


	public int getAutoPurchaseOrderItemId() {
		return autoPurchaseOrderItemId;
	}

	public void setAutoPurchaseOrderItemId(int autoPurchaseOrderItemId) {
		this.autoPurchaseOrderItemId = autoPurchaseOrderItemId;
	}

	public String getmCode() {
		return mCode;
	}

	public void setmCode(String mCode) {
		this.mCode = mCode;
	}

	public String getPoNumber() {
		return poNumber;
	}

	public void setPoNumber(String poNumber) {
		this.poNumber = poNumber;
	}

	public double getmQuantity() {
		return mQuantity;
	}

	public void setmQuantity(double mQuantity) {
		this.mQuantity = mQuantity;
	}

	public double getmPrice() {
		return mPrice;
	}

	public void setmPrice(double mPrice) {
		this.mPrice = mPrice;
	}

	public double getmDiscount() {
		return mDiscount;
	}

	public void setmDiscount(double mDiscount) {
		this.mDiscount = mDiscount;
	}

	public int getmSpecCode() {
		return mSpecCode;
	}

	public void setmSpecCode(int mSpecCode) {
		this.mSpecCode = mSpecCode;
	}

	public int getIdPurchaseOrder() {
		return idPurchaseOrder;
	}

	public void setIdPurchaseOrder(int idPurchaseOrder) {
		this.idPurchaseOrder = idPurchaseOrder;
	}



	public Material getModelMaterial() {
		return modelMaterial;
	}



	public void setModelMaterial(Material modelMaterial) {
		this.modelMaterial = modelMaterial;
	}
	
	
}
